home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
news
/
inn1.000
/
inn1.4sec-linux-src.tar
/
inn
/
lib
/
makellib.sh
< prev
next >
Wrap
Linux/UNIX/POSIX Shell Script
|
1991-11-27
|
603b
|
33 lines
#! /bin/sh
## $Revision: 1.2 $
##
## Make a lint library for INN. Usage:
## makellib <style> "<lintflags>" <sourcefile...>
case $# in
[012])
echo "Can't make INN lint library: wrong number of arguments." 1>&2
exit 1
;;
esac
STYLE="$1"
FLAGS="$2"
shift
shift
## Note the lack of quotes around ${FLAGS}, below.
case "X${STYLE}" in
XBSD)
exec lint ${FLAGS} -u -Cinn $* >/dev/null
;;
XSYSV)
exec lint ${FLAGS} -u -v -x -o inn $* >/dev/null
;;
XNONE)
exec cp /dev/null llib-linn.ln
;;
esac
echo "Can't make INN lint library: unknown method ${STYLE}." 1>&2
exit 1